/**
 * 
 */
package ms.platform.progress.dto;

import java.io.Serializable;

/**
 * 进度查看vo键
 * @author Kevin Deng
 *
 */
public class ProgressViewVoKey implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 308711778464509576L;
	private String date;
	private String modelCode;
	public ProgressViewVoKey(String date, String modelCode) {
		super();
		this.date = date;
		this.modelCode = modelCode;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getModelCode() {
		return modelCode;
	}
	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((modelCode == null) ? 0 : modelCode.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProgressViewVoKey other = (ProgressViewVoKey) obj;
		if (date == null) {
			if (other.date != null)
				return false;
		} else if (!date.equals(other.date))
			return false;
		if (modelCode == null) {
			if (other.modelCode != null)
				return false;
		} else if (!modelCode.equals(other.modelCode))
			return false;
		return true;
	}
	
	
}
